3.2.90 \(\int (a+b \text {sech}^2(x))^{3/2} \, dx\) [190]

Optimal. Leaf size=88 \[ \frac {1}{2} \sqrt {b} (3 a+b) \text {ArcTan}\left (\frac {\sqrt {b} \tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )+a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )+\frac {1}{2} b \tanh (x) \sqrt {a+b-b \tanh ^2(x)} \]

[Out]

a^(3/2)*arctanh(a^(1/2)*tanh(x)/(a+b-b*tanh(x)^2)^(1/2))+1/2*(3*a+b)*arctan(b^(1/2)*tanh(x)/(a+b-b*tanh(x)^2)^
(1/2))*b^(1/2)+1/2*b*(a+b-b*tanh(x)^2)^(1/2)*tanh(x)

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.583, Rules used = {4213, 427, 537, 223, 209, 385, 212} \begin {gather*} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a-b \tanh ^2(x)+b}}\right )+\frac {1}{2} \sqrt {b} (3 a+b) \text {ArcTan}\left (\frac {\sqrt {b} \tanh (x)}{\sqrt {a-b \tanh ^2(x)+b}}\right )+\frac {1}{2} b \tanh (x) \sqrt {a-b \tanh ^2(x)+b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sech[x]^2)^(3/2),x]

[Out]

(Sqrt[b]*(3*a + b)*ArcTan[(Sqrt[b]*Tanh[x])/Sqrt[a + b - b*Tanh[x]^2]])/2 + a^(3/2)*ArcTanh[(Sqrt[a]*Tanh[x])/
Sqrt[a + b - b*Tanh[x]^2]] + (b*Tanh[x]*Sqrt[a + b - b*Tanh[x]^2])/2

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 223

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 385

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 427

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[d*x*(a + b*x^n)^(p + 1)*((c
 + d*x^n)^(q - 1)/(b*(n*(p + q) + 1))), x] + Dist[1/(b*(n*(p + q) + 1)), Int[(a + b*x^n)^p*(c + d*x^n)^(q - 2)
*Simp[c*(b*c*(n*(p + q) + 1) - a*d) + d*(b*c*(n*(p + 2*q - 1) + 1) - a*d*(n*(q - 1) + 1))*x^n, x], x], x] /; F
reeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && GtQ[q, 1] && NeQ[n*(p + q) + 1, 0] &&  !IGtQ[p, 1] && IntB
inomialQ[a, b, c, d, n, p, q, x]

Rule 537

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/b, I
nt[1/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/((a + b*x^n)*Sqrt[c + d*x^n]), x], x] /; FreeQ[{a, b,
 c, d, e, f, n}, x]

Rule 4213

Int[((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist
[ff/f, Subst[Int[(a + b + b*ff^2*x^2)^p/(1 + ff^2*x^2), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p},
 x] && NeQ[a + b, 0] && NeQ[p, -1]

Rubi steps

\begin {align*} \int \left (a+b \text {sech}^2(x)\right )^{3/2} \, dx &=\text {Subst}\left (\int \frac {\left (a+b-b x^2\right )^{3/2}}{1-x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {1}{2} b \tanh (x) \sqrt {a+b-b \tanh ^2(x)}-\frac {1}{2} \text {Subst}\left (\int \frac {-(a+b) (2 a+b)+b (3 a+b) x^2}{\left (1-x^2\right ) \sqrt {a+b-b x^2}} \, dx,x,\tanh (x)\right )\\ &=\frac {1}{2} b \tanh (x) \sqrt {a+b-b \tanh ^2(x)}+a^2 \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {a+b-b x^2}} \, dx,x,\tanh (x)\right )+\frac {1}{2} (b (3 a+b)) \text {Subst}\left (\int \frac {1}{\sqrt {a+b-b x^2}} \, dx,x,\tanh (x)\right )\\ &=\frac {1}{2} b \tanh (x) \sqrt {a+b-b \tanh ^2(x)}+a^2 \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )+\frac {1}{2} (b (3 a+b)) \text {Subst}\left (\int \frac {1}{1+b x^2} \, dx,x,\frac {\tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )\\ &=\frac {1}{2} \sqrt {b} (3 a+b) \tan ^{-1}\left (\frac {\sqrt {b} \tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )+a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b-b \tanh ^2(x)}}\right )+\frac {1}{2} b \tanh (x) \sqrt {a+b-b \tanh ^2(x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.18, size = 152, normalized size = 1.73 \begin {gather*} \frac {\left (b+a \cosh ^2(x)\right ) \text {sech}(x) \sqrt {a+b \text {sech}^2(x)} \left (\sqrt {2} \sqrt {b} (3 a+b) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {b} \sinh (x)}{\sqrt {a+2 b+a \cosh (2 x)}}\right ) \cosh ^2(x)+2 \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sinh (x)}{\sqrt {a+2 b+a \cosh (2 x)}}\right ) \cosh ^2(x)+b \sqrt {a+2 b+a \cosh (2 x)} \sinh (x)\right )}{(a+2 b+a \cosh (2 x))^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sech[x]^2)^(3/2),x]

[Out]

((b + a*Cosh[x]^2)*Sech[x]*Sqrt[a + b*Sech[x]^2]*(Sqrt[2]*Sqrt[b]*(3*a + b)*ArcTan[(Sqrt[2]*Sqrt[b]*Sinh[x])/S
qrt[a + 2*b + a*Cosh[2*x]]]*Cosh[x]^2 + 2*Sqrt[2]*a^(3/2)*ArcTanh[(Sqrt[2]*Sqrt[a]*Sinh[x])/Sqrt[a + 2*b + a*C
osh[2*x]]]*Cosh[x]^2 + b*Sqrt[a + 2*b + a*Cosh[2*x]]*Sinh[x]))/(a + 2*b + a*Cosh[2*x])^(3/2)

________________________________________________________________________________________

Maple [F]
time = 1.22, size = 0, normalized size = 0.00 \[\int \left (a +b \mathrm {sech}\left (x \right )^{2}\right )^{\frac {3}{2}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sech(x)^2)^(3/2),x)

[Out]

int((a+b*sech(x)^2)^(3/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(x)^2)^(3/2),x, algorithm="maxima")

[Out]

integrate((b*sech(x)^2 + a)^(3/2), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 716 vs. \(2 (70) = 140\).
time = 0.52, size = 4140, normalized size = 47.05 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(x)^2)^(3/2),x, algorithm="fricas")

[Out]

[1/4*((a*cosh(x)^4 + 4*a*cosh(x)*sinh(x)^3 + a*sinh(x)^4 + 2*a*cosh(x)^2 + 2*(3*a*cosh(x)^2 + a)*sinh(x)^2 + 4
*(a*cosh(x)^3 + a*cosh(x))*sinh(x) + a)*sqrt(a)*log((a*b^2*cosh(x)^8 + 8*a*b^2*cosh(x)*sinh(x)^7 + a*b^2*sinh(
x)^8 - 2*(a*b^2 - b^3)*cosh(x)^6 + 2*(14*a*b^2*cosh(x)^2 - a*b^2 + b^3)*sinh(x)^6 + 4*(14*a*b^2*cosh(x)^3 - 3*
(a*b^2 - b^3)*cosh(x))*sinh(x)^5 + (a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^4 + (70*a*b^2*cosh(x)^4 + a^3 + 4*a^2*b +
 9*a*b^2 - 30*(a*b^2 - b^3)*cosh(x)^2)*sinh(x)^4 + 4*(14*a*b^2*cosh(x)^5 - 10*(a*b^2 - b^3)*cosh(x)^3 + (a^3 +
 4*a^2*b + 9*a*b^2)*cosh(x))*sinh(x)^3 + a^3 + 2*(a^3 + 3*a^2*b)*cosh(x)^2 + 2*(14*a*b^2*cosh(x)^6 - 15*(a*b^2
 - b^3)*cosh(x)^4 + a^3 + 3*a^2*b + 3*(a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^2)*sinh(x)^2 + sqrt(2)*(b^2*cosh(x)^6
+ 6*b^2*cosh(x)*sinh(x)^5 + b^2*sinh(x)^6 - 3*b^2*cosh(x)^4 + 3*(5*b^2*cosh(x)^2 - b^2)*sinh(x)^4 + 4*(5*b^2*c
osh(x)^3 - 3*b^2*cosh(x))*sinh(x)^3 - (a^2 + 4*a*b)*cosh(x)^2 + (15*b^2*cosh(x)^4 - 18*b^2*cosh(x)^2 - a^2 - 4
*a*b)*sinh(x)^2 - a^2 + 2*(3*b^2*cosh(x)^5 - 6*b^2*cosh(x)^3 - (a^2 + 4*a*b)*cosh(x))*sinh(x))*sqrt(a)*sqrt((a
*cosh(x)^2 + a*sinh(x)^2 + a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2)) + 4*(2*a*b^2*cosh(x)^7 - 3*(a
*b^2 - b^3)*cosh(x)^5 + (a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^3 + (a^3 + 3*a^2*b)*cosh(x))*sinh(x))/(cosh(x)^6 + 6
*cosh(x)^5*sinh(x) + 15*cosh(x)^4*sinh(x)^2 + 20*cosh(x)^3*sinh(x)^3 + 15*cosh(x)^2*sinh(x)^4 + 6*cosh(x)*sinh
(x)^5 + sinh(x)^6)) + ((3*a + b)*cosh(x)^4 + 4*(3*a + b)*cosh(x)*sinh(x)^3 + (3*a + b)*sinh(x)^4 + 2*(3*a + b)
*cosh(x)^2 + 2*(3*(3*a + b)*cosh(x)^2 + 3*a + b)*sinh(x)^2 + 4*((3*a + b)*cosh(x)^3 + (3*a + b)*cosh(x))*sinh(
x) + 3*a + b)*sqrt(-b)*log(-((a - b)*cosh(x)^4 + 4*(a - b)*cosh(x)*sinh(x)^3 + (a - b)*sinh(x)^4 + 2*(a + 3*b)
*cosh(x)^2 + 2*(3*(a - b)*cosh(x)^2 + a + 3*b)*sinh(x)^2 - 2*sqrt(2)*(cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^
2 - 1)*sqrt(-b)*sqrt((a*cosh(x)^2 + a*sinh(x)^2 + a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2)) + 4*((
a - b)*cosh(x)^3 + (a + 3*b)*cosh(x))*sinh(x) + a - b)/(cosh(x)^4 + 4*cosh(x)*sinh(x)^3 + sinh(x)^4 + 2*(3*cos
h(x)^2 + 1)*sinh(x)^2 + 2*cosh(x)^2 + 4*(cosh(x)^3 + cosh(x))*sinh(x) + 1)) + (a*cosh(x)^4 + 4*a*cosh(x)*sinh(
x)^3 + a*sinh(x)^4 + 2*a*cosh(x)^2 + 2*(3*a*cosh(x)^2 + a)*sinh(x)^2 + 4*(a*cosh(x)^3 + a*cosh(x))*sinh(x) + a
)*sqrt(a)*log(-(a*cosh(x)^4 + 4*a*cosh(x)*sinh(x)^3 + a*sinh(x)^4 + 2*(a + b)*cosh(x)^2 + 2*(3*a*cosh(x)^2 + a
 + b)*sinh(x)^2 + sqrt(2)*(cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2 + 1)*sqrt(a)*sqrt((a*cosh(x)^2 + a*sinh(x
)^2 + a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2)) + 4*(a*cosh(x)^3 + (a + b)*cosh(x))*sinh(x) + a)/(
cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2)) + 2*sqrt(2)*(b*cosh(x)^2 + 2*b*cosh(x)*sinh(x) + b*sinh(x)^2 - b)*
sqrt((a*cosh(x)^2 + a*sinh(x)^2 + a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2)))/(cosh(x)^4 + 4*cosh(x
)*sinh(x)^3 + sinh(x)^4 + 2*(3*cosh(x)^2 + 1)*sinh(x)^2 + 2*cosh(x)^2 + 4*(cosh(x)^3 + cosh(x))*sinh(x) + 1),
1/4*(2*((3*a + b)*cosh(x)^4 + 4*(3*a + b)*cosh(x)*sinh(x)^3 + (3*a + b)*sinh(x)^4 + 2*(3*a + b)*cosh(x)^2 + 2*
(3*(3*a + b)*cosh(x)^2 + 3*a + b)*sinh(x)^2 + 4*((3*a + b)*cosh(x)^3 + (3*a + b)*cosh(x))*sinh(x) + 3*a + b)*s
qrt(b)*arctan(sqrt(2)*(cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2 - 1)*sqrt(b)*sqrt((a*cosh(x)^2 + a*sinh(x)^2
+ a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2))/(a*cosh(x)^4 + 4*a*cosh(x)*sinh(x)^3 + a*sinh(x)^4 + 2
*(a + 2*b)*cosh(x)^2 + 2*(3*a*cosh(x)^2 + a + 2*b)*sinh(x)^2 + 4*(a*cosh(x)^3 + (a + 2*b)*cosh(x))*sinh(x) + a
)) + (a*cosh(x)^4 + 4*a*cosh(x)*sinh(x)^3 + a*sinh(x)^4 + 2*a*cosh(x)^2 + 2*(3*a*cosh(x)^2 + a)*sinh(x)^2 + 4*
(a*cosh(x)^3 + a*cosh(x))*sinh(x) + a)*sqrt(a)*log((a*b^2*cosh(x)^8 + 8*a*b^2*cosh(x)*sinh(x)^7 + a*b^2*sinh(x
)^8 - 2*(a*b^2 - b^3)*cosh(x)^6 + 2*(14*a*b^2*cosh(x)^2 - a*b^2 + b^3)*sinh(x)^6 + 4*(14*a*b^2*cosh(x)^3 - 3*(
a*b^2 - b^3)*cosh(x))*sinh(x)^5 + (a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^4 + (70*a*b^2*cosh(x)^4 + a^3 + 4*a^2*b +
9*a*b^2 - 30*(a*b^2 - b^3)*cosh(x)^2)*sinh(x)^4 + 4*(14*a*b^2*cosh(x)^5 - 10*(a*b^2 - b^3)*cosh(x)^3 + (a^3 +
4*a^2*b + 9*a*b^2)*cosh(x))*sinh(x)^3 + a^3 + 2*(a^3 + 3*a^2*b)*cosh(x)^2 + 2*(14*a*b^2*cosh(x)^6 - 15*(a*b^2
- b^3)*cosh(x)^4 + a^3 + 3*a^2*b + 3*(a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^2)*sinh(x)^2 + sqrt(2)*(b^2*cosh(x)^6 +
 6*b^2*cosh(x)*sinh(x)^5 + b^2*sinh(x)^6 - 3*b^2*cosh(x)^4 + 3*(5*b^2*cosh(x)^2 - b^2)*sinh(x)^4 + 4*(5*b^2*co
sh(x)^3 - 3*b^2*cosh(x))*sinh(x)^3 - (a^2 + 4*a*b)*cosh(x)^2 + (15*b^2*cosh(x)^4 - 18*b^2*cosh(x)^2 - a^2 - 4*
a*b)*sinh(x)^2 - a^2 + 2*(3*b^2*cosh(x)^5 - 6*b^2*cosh(x)^3 - (a^2 + 4*a*b)*cosh(x))*sinh(x))*sqrt(a)*sqrt((a*
cosh(x)^2 + a*sinh(x)^2 + a + 2*b)/(cosh(x)^2 - 2*cosh(x)*sinh(x) + sinh(x)^2)) + 4*(2*a*b^2*cosh(x)^7 - 3*(a*
b^2 - b^3)*cosh(x)^5 + (a^3 + 4*a^2*b + 9*a*b^2)*cosh(x)^3 + (a^3 + 3*a^2*b)*cosh(x))*sinh(x))/(cosh(x)^6 + 6*
cosh(x)^5*sinh(x) + 15*cosh(x)^4*sinh(x)^2 + 20*cosh(x)^3*sinh(x)^3 + 15*cosh(x)^2*sinh(x)^4 + 6*cosh(x)*sinh(
x)^5 + sinh(x)^6)) + (a*cosh(x)^4 + 4*a*cosh(x)...

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \operatorname {sech}^{2}{\left (x \right )}\right )^{\frac {3}{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(x)**2)**(3/2),x)

[Out]

Integral((a + b*sech(x)**2)**(3/2), x)

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sech(x)^2)^(3/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:Error: Bad Argument Type

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+\frac {b}{{\mathrm {cosh}\left (x\right )}^2}\right )}^{3/2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b/cosh(x)^2)^(3/2),x)

[Out]

int((a + b/cosh(x)^2)^(3/2), x)

________________________________________________________________________________________